const initialState = {}

export default (state = initialState, { type, payload }: { type: any, payload: any }) => {
    switch (type) {
        //用户信息
        case 'USERINFO':
            return { ...state, userInfo: payload }

        default:
            return state
    }
}
